﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkflowCore.Interface;
using WorkflowCore.Models;

namespace Workflow2211A.Consol.Steps
{
    /// <summary>
    /// 结束步骤
    /// </summary>
    public class EndStep : StepBody //继承StepBody是为了告诉流程引擎，这是一个步骤
    {
        public override ExecutionResult Run(IStepExecutionContext context)
        {
            Console.WriteLine("步骤结束了！！！");
            return ExecutionResult.Next();//如果没有下一个步骤，则流程会自动结束
        }
    }
}
